package com.sakura.mall.member.member.service;

import com.sakura.mall.common.response.Page;
import com.sakura.mall.member.member.domain.entity.MemberEntity;
import com.sakura.mall.member.member.domain.request.AddMemberRequest;
import com.sakura.mall.member.member.domain.request.UpdateMemberRequest;
import com.sakura.mall.member.member.domain.request.MemberPageRequest;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sakura.mall.member.member.domain.vo.MemberVo;

/**
 * 会员 service
 *
 * @author sakura
 */
public interface MemberService extends IService<MemberEntity> {
    

    /**
     * 分页查询
     *
     * @param request 请求
     * @return ret
     */
    Page<MemberVo> queryPage(MemberPageRequest request);

    /**
    * 注册用户
    *
    * @param request 请求
    */
    void add(AddMemberRequest request);
    

    /**
     * 更新用户
     *
     * @param id      id
     * @param request 更新
     */
    void updateById(Long id, UpdateMemberRequest request);
}
